/**
 * 
 */
package dao.hibernate;

import hibernate.InvalidSong;

import java.util.List;

import model.IInvalidSong;

import org.hibernate.criterion.Order;

import dao.IInvalidSongDAO;

/**
 * @author ipeel
 *
 */
public class InvalidSongDAO extends BaseHibernateDAO implements IInvalidSongDAO {
	/* (non-Javadoc)
	 * @see dao.IInvalidSongDAO#getInvalidSongs()
	 */
	@SuppressWarnings("unchecked")
	public List<IInvalidSong> getInvalidSongs() {
		return sessionFactory.getCurrentSession().createCriteria(InvalidSong.class).addOrder(Order.asc("path")).list();
	}
}